package cn.itzzx.lagou.consumer.time;

public class StopTimer {

    private long startTime;
    private long endTime;

    public void start() {
        this.startTime = System.currentTimeMillis();
    }

    public void stop() {
        this.endTime = System.currentTimeMillis();
    }

    public long statisticsTime() {
        return (this.endTime - this.startTime) / 1000;
    }
}
